<?php

interface Yz_Image_Interface
{
    public static function fromFile(Yz_File $file);
    public static function create($width, $height);
    public function getHeight();
    public function getWidth();
    public function insertWatermark(Yz_File $watermarkFile, $x, $y);
    public function resizeTo($w, $h);
    public function resizeWithin($w, $h, $enlarge=false);
    public function saveToFile(Yz_File $file);
}
